package org.com.structuralPattern.facadePattern;

/**
 * @author Jonny
 * @version 1.0
 * @Description:
 * @date 2021/4/15 14:40
 */
public class Secretary {
    private Chauffeur chauffeur=new Chauffeur();
    private Hotel hotel=new Hotel();
    private Restaurant restaurant=new Restaurant();
    private Airport airport=new Airport();

    //安排出差
    public void trip(String to,int days){
        airport.bookTicket("青岛",to);
        chauffeur.drive("机场");
        hotel.reserve(days);
    }

    //安排饭局
    public void repast(int num){
        restaurant.reserve(num);
        chauffeur.drive("酒店");
    }

}
